package com.yhd.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * 用户基本信息表
 */
@Data
public class TUser implements Serializable {
    /**
     * 主键
     */
    @Column(name = "ID")
    @Id
    @KeySql(useGeneratedKeys = true)
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "jdbc")
    private String id;

    /**
     * 用户名
     */
    @Column(name = "userName")
    private String userName;

    /**
     * 登录名
     */
    @Column(name = "loginId")
    private String loginId;

    /**
     * 登录密码
     */
    @Column(name = "password")
    private String password;

    /**
     * 性别 0女 1男
     */
    @Column(name = "sex")
    private Integer sex;

    /**
     * 类型 customer:客户 teacher:老师  system:系统平台,
     */
    @Column(name = "type")
    private String type;
    /**
     * 证件类型
     */
    @Column(name = "cardType")
    private String cardType;
    /**
     * 证件号码
     */
    @Column(name = "cardNo")
    private String cardNo;
    /**
     * 生日
     */
    @Column(name = "birthday")
    private String birthday;
    /**
     * 电话
     */
    @Column(name = "phone")
    private String phone;

    /**
     * 公司
     */
    @Column(name = "company")
    private String company;

    /**
     * 职位
     */
    @Column(name = "position")
    private String position;

    /**
     * 状态 1:生效 0:已删除  2:已冻结
     */
    @Column(name = "status")
    private Integer status;

    /**
     * 创建人
     */
    @Column(name = "createUserId")
    private String createUserId;
    /**
     * 创建时间
     */
    @Column(name = "createTime")
    private Date createTime;
    /**
     * 修改人
     */
    @Column(name = "updateUserId")
    private String updateUserId;

    /**
     * 修改时间
     */
    @Column(name = "updateTime")
    private Date updateTime;

    /**
     * 老师介绍
     */
    @Column(name = "content")
    private String content;

    /**
     * 微信openId
     */
    @Column(name = "openId")
    private String openId;
    /**
     * 头像
     */
    @Column(name = "head")
    private String head;
    
    /**
     * 地区
     */
    @Column(name = "area")
    private String area;
    /**
     * 用户编码
     */
    @Column(name = "userNo")
    private String userNo;
    
    /**
     * 昵称
     */
    @Column(name = "nickname")
    private String nickname;

    /**
     * 体验次数
     */
    @Column(name = "freeNum")
    private Integer freeNum;
    
    /**
     * 邀请人
     */
    @Column(name = "inviter")
    private String inviter;
    
    
    /**
     * 推荐人
     */
    @Column(name = "referrer")
    private String referrer;
    
    /**
     * 是否删除 1是 0否
     */

    @Column(name = "isDel")
    private Integer isDel;

    /**
     * 邀请码
     */
    @ApiModelProperty(value = "邀请码")
    @Column(name = "invitationCode")
    private String invitationCode;
    /**
     * 被邀请码
     */
    @ApiModelProperty(value = "被邀请码")
    @Column(name = "invitedCode")
    private String invitedCode;
    /**
     * 角色
     */
    @ApiModelProperty(value = "角色：0=默认值，1=销售，2=教员，3=班主任，4=其他")
    @Column(name = "role")
    private Integer role;

}